export interface ISiteSettingDto {
  siteName: string;
  domainUrl: string;
  domainCaseNumber: string;
  companyName: string;
  companyAdress:string;
  companyPhone:string;
  title:string;
  meta:string;
}

export class SiteSettingDto implements ISiteSettingDto {
  siteName: string;
  domainUrl: string;
  domainCaseNumber: string;
  companyName: string;
  companyAdress: string;
  companyPhone: string;
  title: string;
  meta: string;

  init(data?: any) {
    if (data) {
      this.siteName = data["siteName"];
      this.domainUrl = data["domainUrl"];
      this.domainCaseNumber = data["domainCaseNumber"];
      this.companyName = data["companyName"];
      this.companyAdress = data["companyAdress"];
      this.companyPhone = data["companyPhone"];
      this.title = data["title"];
      this.meta = data["meta"];
    }
  }

  toJSON(data?: any) {
    data = typeof data === 'object' ? data : {};
    data["siteName"] = this.siteName;
    data["domainUrl"] = this.domainUrl;
    data["domainCaseNumber"] = this.domainCaseNumber;
    data["companyName"] = this.companyName;
    data["companyAdress"] = this.companyAdress;
    data["companyPhone"] = this.companyPhone;
    data["title"] = this.title;
    data["meta"] = this.meta;

    return data;
  }
}


